package cz.acies.genea.data.gedcom.model;

public class Association extends ExtensionContainer
{
	private String ref = null;
	private String type = null;
	private String rela = null;

	public String getRef() {
		return ref;
	}

	public void setRef(String ref) {
		this.ref = ref;
	}

	public Person getPerson(Gedcom gedcom) {
		return gedcom.getPerson(ref);
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getRelation() {
		return rela;
	}

	public void setRelation(String rela) {
		this.rela = rela;
	}

	public void accept(Visitor visitor) {
		if (visitor.visit(this)) {
			super.visitContainedObjects(visitor);
			visitor.endVisit(this);
		}
	}
}
